// import editorStyle from '../utils/defaultStyle';

// 默认的节点配置
export const nodeDefaultOptions = {
    size: [180, 34],
    style: {
        fill: '#ffffff',
        stroke: '#8BCDF7',
        lineWidth: 1,
        radius: 5,
        fillOpacity: 1,
    },
    label: '节点',
    labelCfg: {
        style: {
            fill: '#595959',
            fontSize: 14,
            textAlign: 'start',
            textBaseline: 'middle',
        },
        offset: 16,
    },
    preRect: {
        show: true,
        fill: '#1C9BEC',
    },
    logoIcon: {
        show: true,
        img: require('../icon/default.svg'),
        width: 16,
        height: 16,
        offset: 10,
    },
    stateIcon: {
        show: true,
        img: '', // success: https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg
        width: 20,
        height: 20,
        offset: -5,
        loading: false,
    },
    //  todo: 多值影响样式
    stateStyles: {
        selected: {
            fill: 'red',
            fillOpacity: 0.1,
        },
        hover: {
            cursor: 'red',
            lineWidth: 2,
        },
    },
};
